Make tparam.h and terminfo.c consistent.
authorPaul Eggert <eggert@cs.ucla.edu>
Sat, 19 Mar 2011 22:46:50 +0000 (15:46 -0700)
committerPaul Eggert <eggert@cs.ucla.edu>
Sat, 19 Mar 2011 22:46:50 +0000 (15:46 -0700)
commite27df71cecb988394545a48d33cabd548b84d312
tree22ff6d37dd5244d0188fcbbd010f1e628197e9e1
parente482249e4df2ac3ab8870f939286b8a3eed9f45c
Make tparam.h and terminfo.c consistent.

* cm.c (tputs, tgoto, BC, UP): Remove extern decls.  Include
tparam.h instead, since it declares them.
* cm.h (PC): Remove extern decl; tparam.h now does this.
* deps.mk (cm.o, terminfo.o): Depend on tparam.h.
* terminfo.c: Include tparam.h, to check interfaces.
(tparm): Make 1st arg a const pointer in decl.  Put it at top level.
(tparam): Adjust signature to match interface in tparam.h;
this removes some undefined behavior.  Check that outstring and len
are zero, which they always are with Emacs.
* tparam.h (PC, BC, UP): New extern decls.
src/ChangeLog
src/cm.c
src/cm.h
src/deps.mk
src/terminfo.c
src/tparam.h